package com.wf.messageBoard.service.local;



import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.wf.apicommons.entity.MessageBoard.LeavingAMessage;
import com.wf.apicommons.entity.articleManagement.ArticleDetails;
import com.wf.apicommons.entity.MessageBoard.MqMessage;
import com.wf.apicommons.utils.CommonResult;

import java.util.List;
import java.util.Map;


/**
 * 留言Service
 */
public interface MessageBoardService {

    /**
     * 推送博客数据到MQ
     * @param data
     * @return
     */
    CommonResult<String> pushBlogDataService(MqMessage<ArticleDetails> data);

    /**
     * 推送留言数据到MQ
     * @param data
     * @return
     */
    CommonResult<String> pushLeavingAMessageDataService(MqMessage<LeavingAMessage> data);

    /**
     * 查询留言消息未读数量
     * @param userId
     * @return
     */
     CommonResult<List<Map<String,Object>>> queryLeavingAMessageUnreadQuantity(String userId);

    /**
     * 修改留言消息读取状态
     * @param param
     * @return
     */
   CommonResult<String> updateLeavingAMessageReadStatus(Map<String,Object> param);

    /**
     * 查询留言列表
     * @param param
     * @return
     */
   CommonResult<Page<Map<String,Object>>> queryLeavingAMessageList(Map<String,Object> param);

    /**
     * 处理好友验证消息
     * @param param
     * @return
     */
  CommonResult<String>  processFriendApplication(Map<String,Object> param);
}
